package com.ada.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

public class Configuration {

    private DataSource dataSource;
    /*
     * key：statementId   value:MappedStatement对象*/
    Map<String, MappedStatement> mappedStatementMap = new HashMap<String, MappedStatement>();

    private TypeRegisters typeRegisters = new TypeRegisters();
    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }

    public TypeRegisters getTypeRegisters() {
        return typeRegisters;
    }

    public void setTypeRegisters(TypeRegisters typeRegisters) {
        this.typeRegisters = typeRegisters;
    }
}
